Release 10.1A: OpenEdge Development:
Progress Dynamics Basic Development


Defining the example SmartToolbar object

The next step in building your sample toolbar is to define the toolbar object itself and associate bands with it. Refer to Figure 12–19 to see what the Toolbar Designer looks like when you create a toolbar and add bands to it.

To define the toolbar object and associate bands with it:

  1. Right-click on the Toolbar/MenuBars node in the TreeView, then select Add Toolbar Object from the pop-up menu.
  2. Enter TutorialToolbar as the Object Name and Sample Toolbar as the Object Description.
  3. Select an existing Product Module for the toolbar. This example uses the General Module that you might have defined in OpenEdge Development: Progress Dynamics Getting Started . Note that the module for a toolbar object cannot be defaulted.
  4. Leave the Physical Object at its default value.
  5. Right-click on the Sample Toolbar node in the TreeView, then select Add Toolbar Band.
  6. Enter tStandard as the Band Code. Because this is a MenuBar band, none of the other fields apply, and will be disabled.
  7. Choose Save to save this first band.
  8. Choose Add to add a second band. This is a Menu&Toolbar band, so its items appear in both the menu and in the toolbar.
  9. Enter TableIO as the Band Code, 1 for the Band Sequence, and LEFT for the Band Alignment.
  10. Save this band.
  11. Choose Add to add a third band.
  12. Enter Navigation as the Band Code, 2 for the Band Sequence, and LEFT for the Band Alignment.
  13. Save this band.
  14. Choose Add to add a fourth and final band.
  15. Enter tEditBand as the Band Code, 3 for the Band Sequence, and LEFT for the Band Alignment.
  16. Save this band.

Your new SmartToolbar is now complete. You can exit the Toolbar Designer and add your toolbar to the window, as described in the next section, so that you can test it.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095